import questions from './questions'
import users from './users'
import notify from './notify'
import gr from '@/utils/guard'

export default [
  {
    path: '/tags',
    component: () => import('@/views/tag/index.vue'),
    meta: { title: '标签' }
  }, {
    path: '/tags/create',
    component: () => import('@/views/tag/create.vue'),
    meta: { title: '标签', guard: () => gr.isLogged('/login') }
  }, {
    path: '/tag/:id',
    component: () => import('@/views/tag/detail.vue'),
    meta: { title: '标签' }
  },
  ...users,
  ...questions,
  ...notify,
]